package jspts.qotd.server;

import jspts.qotd.client.ServerConnections;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class ServerConnectionsImpl extends RemoteServiceServlet implements
		ServerConnections {

	public String sendQuestionToServer(String input) throws IllegalArgumentException {
		ServerMainImpl.lastQuestion = input;
		return input;
	}

	public String receiveQuestionFromServer() throws IllegalArgumentException {
		return ServerMainImpl.lastQuestion;
	}
}
